package com.apartment.own.mapper;

import java.util.List;
import java.util.Set;

import com.apartment.own.domain.OwnResArticle;
import com.apartment.own.domain.OwnSystemNotificationMessage;
import com.apartment.own.request.sys.NotificationMessageDTO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * 后台消息通知Mapper接口
 * 
 * @author @Dog_E
 * @date 2020-08-28
 */
public interface OwnSystemNotificationMessageMapper extends BaseMapper<OwnSystemNotificationMessage>
{
    /**
     * 查询后台消息通知
     * 
     * @param id 后台消息通知ID
     * @return 后台消息通知
     */
    public OwnSystemNotificationMessage selectOwnSystemNotificationMessageById(Long id);

    /**
     * 查询后台消息通知列表
     * 
     * @param ownSystemNotificationMessage 后台消息通知
     * @return 后台消息通知集合
     */
    public List<OwnSystemNotificationMessage> selectOwnSystemNotificationMessageList(OwnSystemNotificationMessage ownSystemNotificationMessage);

    /**
     * 新增后台消息通知
     * 
     * @param ownSystemNotificationMessage 后台消息通知
     * @return 结果
     */
    public int insertOwnSystemNotificationMessage(OwnSystemNotificationMessage ownSystemNotificationMessage);

    /**
     * 修改后台消息通知
     * 
     * @param ownSystemNotificationMessage 后台消息通知
     * @return 结果
     */
    public int updateOwnSystemNotificationMessage(OwnSystemNotificationMessage ownSystemNotificationMessage);

    /**
     * 删除后台消息通知
     * 
     * @param id 后台消息通知ID
     * @return 结果
     */
    public int deleteOwnSystemNotificationMessageById(Long id);

    /**
     * 批量删除后台消息通知
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteOwnSystemNotificationMessageByIds(Long[] ids);



    /**
     * @Description: 查询未读条数
     * @param ids: 用户id集合
     * @return: NotificationMessageDTO: 需要对象中的消息类型 以及数量
     * @Author: @Dog_E
     * @Date: 2020/9/8 0008 09:56
     **/
    public List<NotificationMessageDTO> inquireUnreadNumber(List<Long> ids );


}
